<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="http://at.alicdn.com/t/font_905916_rnkpnvjj7w.css">
    <link rel="stylesheet" href="../css/swiper-4.3.5.min.css">
    <link rel="stylesheet" href="../css/element.css">
    <link rel="stylesheet" href="../css/main.css">
    <link rel="stylesheet" href="../css/person_center/person_center.css">
    <title>会员中心-订单详情</title>
</head>

<body>
    <div id="app" v-cloak>
        <headers></headers>
        <!-- search -->
        <div class="search wrap">
            <logo></logo>
            <div class="header_tit fl"></div>
            <searchs></searchs>

            <car_box></car_box>

        </div>
        <div class="wrap person_center">
            <!-- nav -->
            <div class="nav_box fl">
                <div id="subapp" v-cloak>
                    <div class="person_nav fl">
                        <ul>
                            <li @click='person_order'>首页</li>
                            <li class="active">我的订单</li>
                            <li @click='person_address'>收货地址</li>
                            <li @click='person_exchange_page'>积分换货</li>
                            <li @click='person_intergal'>积分订单</li>
                            <li @click='person_collection'>我的收藏</li>
                            <li @click='person_foot'>浏览足迹</li>
                            <li @click='person_ticket'>优惠券</li>
                            <li @click='person_info'>个人设置</li>
                            <li @click='person_message'>消息中心</li>
                        </ul>
                    </div>
                </div>
            </div>
            <div class="right_box fl">
                <div class="integral_order_detail">
                    <div class="integral_tit clea_both">
                        <div class="fl intergal_tit_text">订单详情</div>
                        <div class="fr intergal_active">订单状态：<span>{{deal_active}}</span></div>
                    </div>
                    
                    <div class="step_bar">
                        <el-steps :active="details.status" align-center space='33%'>
                            <el-step title="提交订单" description=""></el-step>
                            <el-step title="付款成功" description=""></el-step>
                            <el-step title="卖家发货" description=""></el-step>
                            <el-step title="确认收货" description=""></el-step>
                            <!-- <el-step title="评价" description="这是一段很长很长很长的描述性文字"></el-step> -->
                        </el-steps>
                       
                        <!-- <el-steps :active="active" align-center space='33%'>
                            <el-step title="参与拼团" description=""  icon="iconfont icon-num_1"></el-step>
                            <el-step title="拼团成功" description=""  icon='iconfont icon-num_'></el-step>
                            <el-step title="卖家发货" description=""  icon='iconfont icon-mum_'></el-step>
                            <el-step title="确认收货" description=""  icon='iconfont icon-mum_'></el-step>
                            <el-step title="评价" description=""  icon='iconfont icon-mum_'></el-step>
                        </el-steps> -->
                    </div>

                    <div class="integral_nums">
                        积分 <span>{{details.totalsPrice}}</span>
                    </div>
                </div>

                <div class="integral_goods clear_both">
                    <div class="integral_goods_nav">
                        <div class="width_for fl">商品</div>
                        <div class="width_one_three fl">规格属性</div>
                        <div class="width_one_three fl">价格</div>
                        <div class="width_one_three fl">数量</div>
                        <div class="width_one_three fl">积分</div>
                        <div class="width_one_three fl">评价</div>
                    </div>
                    <div class="goods_detail" v-for='(item,index) in tgGoods'>
                        <div class="width_for fl">
                            <div class="goods_img fl">
                                <img :src="item.goods_imgs" alt="">
                            </div>
                            <p class="fl goodsName">{{item.goods_name}}</p>
                        </div>
                        <div class="width_one_three fl">
                            <p>{{item.goods_sku}} &nbsp;</p>
                        </div>
                        <div class="width_one_three fl">
                            <p>{{item.zq_price}} &nbsp;</p>
                        </div>
                        <div class="width_one_three fl">
                            <p>1 &nbsp;</p>
                        </div>
                        <div class="width_one_three fl">
                            <p>{{item.zq_totals_price}} &nbsp;</p>
                        </div>
                        <div class="width_one_three fl">
                            <p v-if='!item.comment_status'>未评价</p>
                            <p v-else-if='item.commentStatus'>已评价</p>
                        </div>
                    </div>
                    <!-- <div class="pay_integral">
                        <span class="pay_tit">消耗积分：</span>
                        <span class="pay_detail">payAmount</span>
                    </div> -->
                </div>
                
                <div class="logistics_info clear_both">
                    <div class="intergal_tit_text">订单详情</div>
                    <div class="logistics_list">
                        <div>物流：{{tgGoods.dispatch_type_name}}</div>
                        <div>快递单号：{{tgGoods.dispatch_tracking_num}}</div>
                    </div>
                </div>

                <div class="detail_wrap_box clear_both">
                    <div class="order_detail_info fl">
                        <div class="intergal_tit_text">订单信息</div>
                        <div class="logistics_list">
                            <div>收货人：{{details.addressConsigneeRealname}}</div>
                            <div>收货地址：{{details.addressProvinceName}} {{details.addressCityName}} {{details.addressDistrictName}} {{details.addressConsigneeAddress}}</div>
                            <div>手机号码：{{details.addressConsigneeMobilePhone}}</div>
                            <div>订单编号：{{details.showOrderDetailsId}}</div>
                            <div>卖家：{{details.merName}}</div>
                        </div>  
                    </div>
                    <div class="order_detail_info fl">
                        <div class="intergal_tit_text margin_six">订单详情</div>
                        <div class="clear_both">
                            <div class="order_detail_item fr">
                                <span class="order_detail_tit">商品总额：</span>
                                <!-- <span class="order_detail_text fr">￥{{goods.goodsTotalPrice}}</span> -->
                            </div>
                        </div>
                        <div class="clear_both">
                            <div class="order_detail_item fr">
                                <span class="order_detail_tit">优惠：</span>
                                <span class="order_detail_text fr">-￥{{details.couponDiscountsPrice}}</span>
                            </div>
                        </div>
                        <div class="clear_both">
                            <div class="order_detail_item fr">
                                <span class="order_detail_tit">运费：</span>
                                <span class="order_detail_text fr">￥{{details.dispatchTotalsPrice}}</span>
                            </div>
                        </div>
                        <div class="clear_both">
                            <div class="order_detail_item fr">
                                <span class="order_detail_tit pay_real_tit">付款总额：</span>
                                <span class="order_detail_text pay_real fr">￥{{details.totalsPrice}}</span>
                            </div>
                        </div>
                    </div>
                </div>

            

                
            </div>


        </div>





       <div class="wrap clear_both">             <productfooter></productfooter>         </div>
    </div>
     
    <script src="../js/axios.js"></script>         <script src="../js/qs.js"></script>
    <script src="../js/swiper-4.3.5.min.js"></script>
    <script src="../js/browser.min.js"></script>
    <script src="../js/vue.js"></script>
    <script src="../js/element.js"></script>
    <script src="../js/main.js"></script>
    <script type="text/babel">
        var app = new Vue({
            el: '#app',
            data() {
                return {
                    active: 1,
                    car_active:false,
                    id:'',
                    goodsId:'',
                    tgGoods:'',
                    details:'',
                    deal_active:''

                };
            },
            created() {
                
            },
            mounted() {
               this.goodsId = this.GetQueryString().id
               this.ogd()
            },
            methods: {
                // 详情
                ogd(){
                    axios({
                        method:"POST",
                        url:base_url + "/aozq/ozqgd",
                        data:Qs.stringify({
                            orderGoodsId:this.goodsId,
                        }),
                        headers:{
                            'Content-Type':'application/x-www-form-urlencoded',
                            "TOKEN":localStorage.getItem('wACCESS_TOKEN')
                        }
                    })
                    .then(function (res) {
                        if (res.data.code==1) {
                            app.tgGoods = res.data.data.tgGoods
                            app.details = res.data.data.details
                            console.log(app.details)
                            if (app.details.couponDiscountsPrice==null) {
                                app.details.couponDiscountsPrice=0
                            }
                            if (app.details.status==1) {
                                app.deal_active = '提交订单'
                            }else if (app.details.status==2) {
                                app.deal_active = '付款成功'
                            }else if (app.details.status==3) {
                                app.deal_active = '卖家发货'
                            }else if (app.details.status==4) {
                                app.deal_active = '确认收货'
                            }
                           console.log(res.data.data)
                        }
                    })
                    .catch(function (error) {
                    });
                },

                GetQueryString() {
                    var obj = new Object()
                    var scan_url = window.location.href.split('?')[1];
                    var strs = scan_url.split('&');
                    for(var x in strs) {
                        var arr = strs[x].split('=');
                        obj[arr[0]] = arr[1]
                    }
                    return obj
                },
                // 显示购物车               
                go_shop_car(){                     
                    window.location.href='../product/shop_car.html'  
                },
                car_box(){
                    this.car_active = !this.car_active
                },
                person_order(){
                    window.location.href='person_order.html'
                },
                person_address(){
                    window.location.href='person_address.html'
                },
                person_exchange_page(){
                    window.location.href='person_exchange_page.html'
                },
                person_center(){
                    window.location.href='person_integral_order.html'
                },
                person_info(){
                    window.location.href='person_info.html'
                },
                person_collection(){
                    window.location.href='person_collection.html'
                },
                person_ticket(){
                    window.location.href='person_ticket.html'
                },
                person_message(){
                    window.location.href='person_message.html'
                },
                person_foot(){
                    window.location.href='person_footprint.html'
                },
                person_intergal(){
                    window.location.href='person_integral_order.html'
                },
                
            }
        })
        
    </script>
</body>

</html>